<?php

class MainModel extends ArrayProcessor_XMLElements {
	
	public static function getMainMenuData ()  {
// Load the file needed to create the mainMenu
		$xml = AutoFileLoader::getFileContent(AutoFileLoader::FILE_XML, 'mainMenu');
		
		$menu = array();
		
		$menu[self::ELE_GENERAL] = self::XMLToHTMLArray($xml, self::ELE_GENERAL, '');
		
		$menu[self::ELE_STRUCTURE] = self::XMLToHTMLArray($xml, self::ELE_STRUCTURE, '');
		
		return $menu;
	}
	
	public static function getMainMenuControlData ()  {
		// Load the file needed to create the mainMenu
		$xml = AutoFileLoader::getFileContent(AutoFileLoader::FILE_XML, 'mainMenuControl');
	
		$menu = array();
	
		$menu[self::ELE_GENERAL] = self::XMLToHTMLArray($xml, self::ELE_GENERAL, '');
	
		$menu[self::ELE_STRUCTURE] = self::XMLToHTMLArray($xml, self::ELE_STRUCTURE, '');
	
		return $menu;
	}
	
	public static function getMainTextContent ()  {
		$xml = AutoFileLoader::getFileContent(AutoFileLoader::FILE_XML, 'home');
		
		$menu = array();
		
		$menu[self::ELE_GENERAL] = self::XMLToHTMLArray($xml, self::ELE_GENERAL, '');
		
		$menu[self::ELE_STRUCTURE] = self::XMLToHTMLArray($xml, self::ELE_STRUCTURE, '');
		
		return $menu;
	}
	
	public static function getErrorMessageData ()  {
		$xml = AutoFileLoader::getFileContent(AutoFileLoader::FILE_XML, 'errorMessage');
	
		$menu = array();
	
		$menu[self::ELE_GENERAL] = self::XMLToHTMLArray($xml, self::ELE_GENERAL, '');
	
		$menu[self::ELE_STRUCTURE] = self::XMLToHTMLArray($xml, self::ELE_STRUCTURE, '');
	
		return $menu;
	}

}